Add some more GdkDebugFlags, for more fine-grained debugging output
authorTor Lillqvist <tml@iki.fi>
Wed, 13 Feb 2002 21:59:47 +0000 (21:59 +0000)
committerTor Lillqvist <tml@src.gnome.org>
Wed, 13 Feb 2002 21:59:47 +0000 (21:59 +0000)
2002-02-13  Tor Lillqvist  <tml@iki.fi>

* gdk/gdkinternals.h: Add some more GdkDebugFlags, for more
fine-grained debugging output (mainly used in the Win32 backend).

* gdk/gdk.c: Corresponding additions to the gdk_debug_keys table.

ChangeLog
ChangeLog.pre-2-0
ChangeLog.pre-2-10
ChangeLog.pre-2-2
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
gdk/gdk.c
gdk/gdkinternals.h

index 6ffe5b02966d76139e24b4494d92d07c00353648..183c1ccca60d3da4c4c986558ab5b87a588f964b 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2002-02-13  Tor Lillqvist  <tml@iki.fi>
+
+       * gdk/gdkinternals.h: Add some more GdkDebugFlags, for more
+       fine-grained debugging output (mainly used in the Win32 backend).
+
+       * gdk/gdk.c: Corresponding additions to the gdk_debug_keys table.
+
 Wed Feb 13 15:42:42 2002  Owen Taylor  <otaylor@redhat.com>
 
        * gtk/gtktooltips.[ch] gtkwidget.c: Implement Control-F1
@@ -1706,7 +1713,7 @@ Sat Jan 12 16:57:31 2002  Kristian Rietveld  <kris@gtk.org>
        cursor, set the Windows cursor to none first.
 
        * gdk/win32/gdkgc-win32.c (predraw_set_foreground): Delete the old
-       brush that was in the DC, like the win32-procution branch does. I
+       brush that was in the DC, like the win32-production branch does. I
        guess this plugs a resource leak? With the HDC cache, the old
        brush might be something we created ourselves, and not a stock
        brush. And it doesn't do any harm to call DeleteObject on stock
index 6ffe5b02966d76139e24b4494d92d07c00353648..183c1ccca60d3da4c4c986558ab5b87a588f964b 100644 (file)
@@ -1,3 +1,10 @@
+2002-02-13  Tor Lillqvist  <tml@iki.fi>
+
+       * gdk/gdkinternals.h: Add some more GdkDebugFlags, for more
+       fine-grained debugging output (mainly used in the Win32 backend).
+
+       * gdk/gdk.c: Corresponding additions to the gdk_debug_keys table.
+
 Wed Feb 13 15:42:42 2002  Owen Taylor  <otaylor@redhat.com>
 
        * gtk/gtktooltips.[ch] gtkwidget.c: Implement Control-F1
@@ -1706,7 +1713,7 @@ Sat Jan 12 16:57:31 2002  Kristian Rietveld  <kris@gtk.org>
        cursor, set the Windows cursor to none first.
 
        * gdk/win32/gdkgc-win32.c (predraw_set_foreground): Delete the old
-       brush that was in the DC, like the win32-procution branch does. I
+       brush that was in the DC, like the win32-production branch does. I
        guess this plugs a resource leak? With the HDC cache, the old
        brush might be something we created ourselves, and not a stock
        brush. And it doesn't do any harm to call DeleteObject on stock
index 6ffe5b02966d76139e24b4494d92d07c00353648..183c1ccca60d3da4c4c986558ab5b87a588f964b 100644 (file)
@@ -1,3 +1,10 @@
+2002-02-13  Tor Lillqvist  <tml@iki.fi>
+
+       * gdk/gdkinternals.h: Add some more GdkDebugFlags, for more
+       fine-grained debugging output (mainly used in the Win32 backend).
+
+       * gdk/gdk.c: Corresponding additions to the gdk_debug_keys table.
+
 Wed Feb 13 15:42:42 2002  Owen Taylor  <otaylor@redhat.com>
 
        * gtk/gtktooltips.[ch] gtkwidget.c: Implement Control-F1
@@ -1706,7 +1713,7 @@ Sat Jan 12 16:57:31 2002  Kristian Rietveld  <kris@gtk.org>
        cursor, set the Windows cursor to none first.
 
        * gdk/win32/gdkgc-win32.c (predraw_set_foreground): Delete the old
-       brush that was in the DC, like the win32-procution branch does. I
+       brush that was in the DC, like the win32-production branch does. I
        guess this plugs a resource leak? With the HDC cache, the old
        brush might be something we created ourselves, and not a stock
        brush. And it doesn't do any harm to call DeleteObject on stock
index 6ffe5b02966d76139e24b4494d92d07c00353648..183c1ccca60d3da4c4c986558ab5b87a588f964b 100644 (file)
@@ -1,3 +1,10 @@
+2002-02-13  Tor Lillqvist  <tml@iki.fi>
+
+       * gdk/gdkinternals.h: Add some more GdkDebugFlags, for more
+       fine-grained debugging output (mainly used in the Win32 backend).
+
+       * gdk/gdk.c: Corresponding additions to the gdk_debug_keys table.
+
 Wed Feb 13 15:42:42 2002  Owen Taylor  <otaylor@redhat.com>
 
        * gtk/gtktooltips.[ch] gtkwidget.c: Implement Control-F1
@@ -1706,7 +1713,7 @@ Sat Jan 12 16:57:31 2002  Kristian Rietveld  <kris@gtk.org>
        cursor, set the Windows cursor to none first.
 
        * gdk/win32/gdkgc-win32.c (predraw_set_foreground): Delete the old
-       brush that was in the DC, like the win32-procution branch does. I
+       brush that was in the DC, like the win32-production branch does. I
        guess this plugs a resource leak? With the HDC cache, the old
        brush might be something we created ourselves, and not a stock
        brush. And it doesn't do any harm to call DeleteObject on stock
index 6ffe5b02966d76139e24b4494d92d07c00353648..183c1ccca60d3da4c4c986558ab5b87a588f964b 100644 (file)
@@ -1,3 +1,10 @@
+2002-02-13  Tor Lillqvist  <tml@iki.fi>
+
+       * gdk/gdkinternals.h: Add some more GdkDebugFlags, for more
+       fine-grained debugging output (mainly used in the Win32 backend).
+
+       * gdk/gdk.c: Corresponding additions to the gdk_debug_keys table.
+
 Wed Feb 13 15:42:42 2002  Owen Taylor  <otaylor@redhat.com>
 
        * gtk/gtktooltips.[ch] gtkwidget.c: Implement Control-F1
@@ -1706,7 +1713,7 @@ Sat Jan 12 16:57:31 2002  Kristian Rietveld  <kris@gtk.org>
        cursor, set the Windows cursor to none first.
 
        * gdk/win32/gdkgc-win32.c (predraw_set_foreground): Delete the old
-       brush that was in the DC, like the win32-procution branch does. I
+       brush that was in the DC, like the win32-production branch does. I
        guess this plugs a resource leak? With the HDC cache, the old
        brush might be something we created ourselves, and not a stock
        brush. And it doesn't do any harm to call DeleteObject on stock
index 6ffe5b02966d76139e24b4494d92d07c00353648..183c1ccca60d3da4c4c986558ab5b87a588f964b 100644 (file)
@@ -1,3 +1,10 @@
+2002-02-13  Tor Lillqvist  <tml@iki.fi>
+
+       * gdk/gdkinternals.h: Add some more GdkDebugFlags, for more
+       fine-grained debugging output (mainly used in the Win32 backend).
+
+       * gdk/gdk.c: Corresponding additions to the gdk_debug_keys table.
+
 Wed Feb 13 15:42:42 2002  Owen Taylor  <otaylor@redhat.com>
 
        * gtk/gtktooltips.[ch] gtkwidget.c: Implement Control-F1
@@ -1706,7 +1713,7 @@ Sat Jan 12 16:57:31 2002  Kristian Rietveld  <kris@gtk.org>
        cursor, set the Windows cursor to none first.
 
        * gdk/win32/gdkgc-win32.c (predraw_set_foreground): Delete the old
-       brush that was in the DC, like the win32-procution branch does. I
+       brush that was in the DC, like the win32-production branch does. I
        guess this plugs a resource leak? With the HDC cache, the old
        brush might be something we created ourselves, and not a stock
        brush. And it doesn't do any harm to call DeleteObject on stock
index 6ffe5b02966d76139e24b4494d92d07c00353648..183c1ccca60d3da4c4c986558ab5b87a588f964b 100644 (file)
@@ -1,3 +1,10 @@
+2002-02-13  Tor Lillqvist  <tml@iki.fi>
+
+       * gdk/gdkinternals.h: Add some more GdkDebugFlags, for more
+       fine-grained debugging output (mainly used in the Win32 backend).
+
+       * gdk/gdk.c: Corresponding additions to the gdk_debug_keys table.
+
 Wed Feb 13 15:42:42 2002  Owen Taylor  <otaylor@redhat.com>
 
        * gtk/gtktooltips.[ch] gtkwidget.c: Implement Control-F1
@@ -1706,7 +1713,7 @@ Sat Jan 12 16:57:31 2002  Kristian Rietveld  <kris@gtk.org>
        cursor, set the Windows cursor to none first.
 
        * gdk/win32/gdkgc-win32.c (predraw_set_foreground): Delete the old
-       brush that was in the DC, like the win32-procution branch does. I
+       brush that was in the DC, like the win32-production branch does. I
        guess this plugs a resource leak? With the HDC cache, the old
        brush might be something we created ourselves, and not a stock
        brush. And it doesn't do any harm to call DeleteObject on stock
index 04020ebc755dab824a01ed839a9d5101dd8ed185..097a3964222142878c8545103211a8b0722900cb 100644 (file)
--- a/gdk/gdk.c
+++ b/gdk/gdk.c
@@ -59,9 +59,16 @@ static const GDebugKey gdk_debug_keys[] = {
   {"dnd",          GDK_DEBUG_DND},
   {"xim",          GDK_DEBUG_XIM},
   {"nograbs",       GDK_DEBUG_NOGRABS},
+  {"colormap",     GDK_DEBUG_COLORMAP},
+  {"gdkrgb",       GDK_DEBUG_GDKRGB},
+  {"gc",           GDK_DEBUG_GC},
+  {"pixmap",       GDK_DEBUG_PIXMAP},
+  {"image",        GDK_DEBUG_IMAGE},
+  {"input",        GDK_DEBUG_INPUT},
+  {"cursor",       GDK_DEBUG_CURSOR},
 };
 
-static const int gdk_ndebug_keys = sizeof(gdk_debug_keys)/sizeof(GDebugKey);
+static const int gdk_ndebug_keys = G_N_ELEMENTS (gdk_debug_keys);
 
 #endif /* G_ENABLE_DEBUG */
 
index 327d56560d16d529c5313247f75928839dfb02ec..ae7a9451afe125605b6dcd3c999bebfdc79d99dd 100644 (file)
@@ -69,6 +69,13 @@ typedef enum {
   GDK_DEBUG_DND           = 1 << 2,
   GDK_DEBUG_XIM           = 1 << 3,
   GDK_DEBUG_NOGRABS       = 1 << 4,
+  GDK_DEBUG_COLORMAP     = 1 << 5,
+  GDK_DEBUG_GDKRGB       = 1 << 6,
+  GDK_DEBUG_GC           = 1 << 7,
+  GDK_DEBUG_PIXMAP       = 1 << 8,
+  GDK_DEBUG_IMAGE        = 1 << 9,
+  GDK_DEBUG_INPUT        = 1 <<10,
+  GDK_DEBUG_CURSOR       = 1 <<11
 } GdkDebugFlag;
 
 #ifndef GDK_DISABLE_DEPRECATED